package com.rd.student.jike.class4.xiayinyin.day0801;

import java.util.Arrays;

public class Exercises04 {
    public static void main(String[] args) {
        int[] arr = {60,77,33,55,88,90,99};
        for (int i = 0; i < arr.length-1; i++) {
            int a = Integer.MAX_VALUE;
            int count = 0;
            for (int j = i; j < arr.length; j++) {
                if (a > arr[j]){
                    a = arr[j];
                    count = j;
                }
            }
            arr[count] = arr[i];
            arr[i] = a;
        }
        System.out.println(Arrays.toString(arr));
    }
}
